package com.primb.bench.project.init.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Chen on 2017/7/25.
 * 功能描述：
 */

public class LoginEntity {

    /**
     * success : true
     * msg :
     * data : {"userId":"fhyw","userName":"分行业务管理员","orgId":"02","orgName":"(02)辽阳银行辽阳分行","roleLevel":"R004001"}
     */

    private boolean success;
    private String msg;
    private DataBean data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * userId : fhyw
         * userName : 分行业务管理员
         * orgId : 02
         * orgName : (02)辽阳银行辽阳分行
         * roleLevel : R004001
         */

        private String userId;
        private String userName;
        private String orgId;
        private String orgName;
        private String roleLevel;

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getOrgId() {
            return orgId;
        }

        public void setOrgId(String orgId) {
            this.orgId = orgId;
        }

        public String getOrgName() {
            return orgName;
        }

        public void setOrgName(String orgName) {
            this.orgName = orgName;
        }

        public String getRoleLevel() {
            return roleLevel;
        }

        public void setRoleLevel(String roleLevel) {
            this.roleLevel = roleLevel;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.userId);
            dest.writeString(this.userName);
            dest.writeString(this.orgId);
            dest.writeString(this.orgName);
            dest.writeString(this.roleLevel);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.userId = in.readString();
            this.userName = in.readString();
            this.orgId = in.readString();
            this.orgName = in.readString();
            this.roleLevel = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
